package com.yibo.db.user.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.sql.Timestamp;

import static com.yibo.support.constant.YBConstant.SCHEMA;


@Setter
@Getter
@Accessors(chain = true)
@TableName(SCHEMA+"yibo_user_login_fail")
public class LoginError {


    /**
     * 请求IP
     */
    @TableId
    private String ip;

    /**
     * 用户ID
     */
    private String userId;


    /**
     * 登陆失败次数
     */
    private int loginFailTimes;


    /**
     * 最后一次登陆时间
     */
    private Timestamp endLoginTime;
}
